package com.hopu.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TIoWarehouse implements Serializable {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private String idNo;          //出入库单号
  private String idType;        //出入库类型
  private Integer batch;
  private String pName;         //产品名称
  private Integer pNum;
  private String wName;         //仓库名称
  //更改前端时间显示格式
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.sql.Timestamp ioTime;
  //0为出库     1为入库
  private Integer ioFlag;

}
